var $j= jQuery.noConflict();


$j("#tipo").live("change", function(){
	if( $j(this).val() == "hogar"){
		$j("#atributos-ropa").css("display", "none");
		$j("#atributos-hogar").css("display", "block");
	}else if($j(this).val()== "ropa"){
		$j("#atributos-ropa").css("display", "block");
		$j("#atributos-hogar").css("display", "none");
	}else{
		$j("#atributos-ropa").css("display", "none");
		$j("#atributos-hogar").css("display", "none");
	}
});
$j(".mostrar-completo").live("click", function(){
	var id= $j(this).attr("id");
	$j.get("/home/get-articulo", {articulo_id:id}, function(data){ejecutarModal(data);}, "script");
});

function ejecutarModal(data){
	$j("#modal").dialog({modal:true});
	$j("#modal").html(data);
}
